using System;

namespace OffsetPath
{
    public class ClassAm
    {
        private static Random a = new Random();
        public double b;
        public double c;

        public ClassAm()
        {
        }

        public ClassAm(double A_0, double A_1)
        {
            this.c = A_0;
            this.b = A_1;
        }

        public double MethodA()
        {
            return (this.c + ((this.b - this.c) * a.NextDouble()));
        }

        public void MethodA(double A_0)
        {
            this.c = A_0;
        }

        public void MethodA(double A_0, double A_1)
        {
            this.c = A_0;
            this.b = A_1;
        }

        public double MethodB()
        {
            return this.b;
        }

        public void MethodB(double A_0)
        {
            this.b = A_0;
        }

        public double MethodC()
        {
            return this.c;
        }

        public int d()
        {
            ClassAm classAm = new ClassAm(Math.Ceiling(this.c), Math.Floor(this.b) + 1.0);
            double num = classAm.MethodA();
            if (num == ((int) classAm.MethodB()))
            {
                return (int) (num - 1.0);
            }
            return (int) num;
        }

        public bool e()
        {
            return (a.NextDouble() > 0.5);
        }

        ~ClassAm()
        {
        }
    }
}

